<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <script src="js/angular.min.js"></script>
    <script src="js/main.js"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
</head>


<body>

<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">BBS</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">板块1</a></li>
                <li><a href="#">板块2</a></li>
                <li><a href="#">板块3</a></li>
                <li><a href="#">板块4</a></li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">Login/Logout</a></li>
                <li><a href="#">register</a></li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="main-wrap">
<div class="container" ng-app="myBBS" ng-controller="myBBSCtrl as my">
    <div class="row">
        <div class="col-md-9">
            <ul class="list-group">
                <li class="list-group-item" ng-repeat="post in my.posts">
                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td width="48">
                                <img src="https://cdn.v2ex.co/avatar/5afd/3bb6/11178_normal.png?m=1450178854" width="48px" height="48px">
                            </td>
                            <td width="10"></td>
                            <td width="auto">
                                <span class="post-title">{{post.name}}</span>
                                <div class="sep5"></div>
                                <span class="post-author">{{post.author}} 发表于 5分钟前 </span>
                            </td>
                            <td width="70" class="post-reply" align="right">
                                <a>52</a>
                            </td>
                        </tr>
                    </table>
                </li>
            </ul>
        </div>
        <div class="col-md-3">
            <ul class="list-group">
                <li class="list-group-item list-group-title">BBS达人</li>
                <li class="list-group-item" ng-repeat="user in my.users">{{user.name}} {{user.postnumber}}</li>
            </ul>
            <ul class="list-group">
                <li class="list-group-item list-group-title">友情链接</li>
                <li class="list-group-item" ng-repeat="website in my.websites">{{website}}</li>
            </ul>
            <ul class="list-group">
                <li class="list-group-item list-group-title">这里是广告</li>
                <li class="list-group-item">广告</li>
                <li class="list-group-item">广告</li>
                <li class="list-group-item">广告</li>
                <li class="list-group-item">广告</li>
            </ul>
        </div>
    </div>

</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>